package com.wtpm.sys.vo;

import java.util.ArrayList;
import java.util.List;

import com.fwk.spbt.vo.BaseVO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@SuppressWarnings("serial")
@ApiModel(description = "管理用户系统菜单")
public class LoginMenuVO implements BaseVO {

	@ApiModelProperty(value = "菜单编号")
	private String id;

	@ApiModelProperty(value = "上级菜单编号")
	private String pid;

	@ApiModelProperty(value = "菜单名称")
	private String name;

	@ApiModelProperty(value = "菜单图标")
	private String icon;

	@ApiModelProperty(value = "菜单路径 ")
	private String path;

	@ApiModelProperty(value = "路由列表")
	private List<LoginMenuVO> routes;

	public void addSubMenu(LoginMenuVO vo) {
		if (routes == null)
			routes = new ArrayList<LoginMenuVO>();
		routes.add(vo);
	}
}
